package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.JobApply;
import com.ruoyi.business.domain.vo.JobApplyWithJobVO;

/**
 * 岗位投递Mapper接口
 * 
 * @author asher
 * @date 2021-11-22
 */
public interface JobApplyMapper 
{
    /**
     * 查询岗位投递
     * 
     * @param applyId 岗位投递主键
     * @return 岗位投递
     */
    public JobApply selectJobApplyByApplyId(Long applyId);

    /**
     * 查询岗位投递列表
     * 
     * @param jobApply 岗位投递
     * @return 岗位投递集合
     */
    public List<JobApply> selectJobApplyList(JobApply jobApply);

    /**
     * 新增岗位投递
     * 
     * @param jobApply 岗位投递
     * @return 结果
     */
    public int insertJobApply(JobApply jobApply);

    /**
     * 修改岗位投递
     * 
     * @param jobApply 岗位投递
     * @return 结果
     */
    public int updateJobApply(JobApply jobApply);

    /**
     * 删除岗位投递
     * 
     * @param applyId 岗位投递主键
     * @return 结果
     */
    public int deleteJobApplyByApplyId(Long applyId);

    /**
     * 批量删除岗位投递
     * 
     * @param applyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJobApplyByApplyIds(Long[] applyIds);

    JobApply selectJobApplyByJobIdAndUserId(Long jobId, Long userId);

    List<JobApplyWithJobVO> selectJobApplyWithJobList(JobApply jobApply);
}
